<?php
/**
 * Usage example for HTML_QuickForm2 package: AJAX-backed hierselect element, AJAX server
 *
 * $Id: hierselect-server.php 303930 2010-10-02 06:35:36Z avb $
 */

//включаем автолоад
require($_SERVER['DOCUMENT_ROOT'].'/vendors/__autoload.php');
//Инициализация
require($_SERVER['DOCUMENT_ROOT'].'/cms/prepend.php');


require_once 'HTML/AJAX/Server.php';
require_once($_SERVER['DOCUMENT_ROOT'].'/cms/ext/hierselect-loader.php');

$server = new HTML_AJAX_Server();
$server->clientJsLocation = $_SERVER['DOCUMENT_ROOT'].'/vendors/PEAR/HTML/AJAX/js/';
$server->registerClass(new OptionLoader(), 'OptionLoader', array('getOptionsAjax'));
$server->handleRequest();
?>